package com.arsl.client.event;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.ui.HasWidgets;

public class KillContainerEvent extends GwtEvent<KillContainerEventHandler> {

	public static Type<KillContainerEventHandler> TYPE = new Type<KillContainerEventHandler>();
	private HasWidgets container;

	public KillContainerEvent(HasWidgets container) {
		this.container = container;
	}

	@Override
	public Type<KillContainerEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(KillContainerEventHandler handler) {
		handler.onKillContainerEvent(this);
	}

	public HasWidgets getContainer() {
		// TODO Auto-generated method stub
		return container;
	}

	public void setContainer(HasWidgets container) {
		this.container = container;
	}

}
